package com.company.jrlz.entity;

import com.haulmont.cuba.core.entity.StandardEntity;

import javax.persistence.*;

@Table(name = "JRLZ_RAW_MATERIAL_RECORDS")
@Entity(name = "jrlz_RawMaterialRecords")
public class RawMaterialRecords extends StandardEntity {
    private static final long serialVersionUID = 6094117771383629554L;

    @Column(name = "MATERIAL_TYPE")
    private String materialType;

    @Column(name = "MATERIAL_ID")
    private String materialId;

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "PROCESS_WORK_ORDER_RECORDS_ID")
    private ProcessWorkOrderRecords processWorkOrderRecords;

    @Column(name = "BATCH_CODE")
    private String batchCode;

    @Column(name = "POSITION_")
    private String position;

    @Column(name = "STATUS")
    private String status;

    @Column(name = "START_TIME")
    private String startTime;

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getStartTime() {
        return startTime;
    }

    public ProcessWorkOrderRecords getProcessWorkOrderRecords() {
        return processWorkOrderRecords;
    }

    public void setProcessWorkOrderRecords(ProcessWorkOrderRecords processWorkOrderRecords) {
        this.processWorkOrderRecords = processWorkOrderRecords;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public String getBatchCode() {
        return batchCode;
    }

    public void setBatchCode(String batchCode) {
        this.batchCode = batchCode;
    }

    public String getMaterialId() {
        return materialId;
    }

    public void setMaterialId(String materialId) {
        this.materialId = materialId;
    }

    public String getMaterialType() {
        return materialType;
    }

    public void setMaterialType(String materialType) {
        this.materialType = materialType;
    }
}